﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AssetManagementSystem.Model.IDao {
    public interface IHoldDAO {
        /// <summary>
        /// Create a new hold in the database, from a 'Hold' business object.
        /// </summary>
        /// <param name="hold">The hold object to be stored in the database</param>
        void CreateHold(Hold hold);
        /// <summary>
        /// Returns a collection of all holds found within the database.
        /// </summary>
        /// <returns>A collection of all holds found within the database.</returns>
        ICollection<Hold> GetAllHolds();
        /// <summary>
        /// Delete data for a single hold from the database.
        /// </summary>
        /// <param name="hold">The hold to be deleted.</param>
        void DeleteHold(Hold hold);
    }
}
